Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Refactor tag protection resources #69

Merged
merged 2 commits into from
Sep 4, 2024
Merged

Conversation

fatbasstard
Copy link
Contributor

@fatbasstard fatbasstard commented Sep 2, 2024

This PR refactors the Tag Protection resources.

The old tag protection is deprecated and is replaced with Rulesets:

Error: POST https://api.github.com/repos/connectedbrewery/nldevoc-sandbox-wspaargaren/tags/protection: 410 This is a scheduled brownout of the tag protections API. Tag protections will be fully deprecated on 2024-08-30. At that point, this API endpoint will be removed. Please use tag rulesets instead. []

This PR changes the resource from github_repository_tag_protection to github_repository_ruleset while keeping the functionality intact. The refactor is based on the export to ruleset outcome from Github itself:

image

On purpose made it a 1-on-1 refactor without implementing any specific ruleset features so this can be a patch version. Since it currently is completely broken this allows for a smooth update.

See also: https://github.blog/changelog/2024-05-29-sunset-notice-tag-protections/

@fatbasstard fatbasstard requested a review from a team as a code owner September 2, 2024 09:33
@github-actions github-actions bot added the bug Something isn't working label Sep 2, 2024
Copy link
Contributor

github-actions bot commented Sep 2, 2024

Terraform Format and Style 🖌success

Terraform Initialization ⚙️``

Terraform Lint 📖success

Terraform Validation 🤖skipped

Validation Output


@fatbasstard fatbasstard merged commit 73b3b18 into master Sep 4, 2024
@fatbasstard fatbasstard deleted the fvb/tag_protection branch September 4, 2024 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants